(function ($) {

AjaxSolr.theme.prototype.result = function (doc, snippet) {
  var output = '<div class="result"><h2><a href="'+doc.uri+'">' + doc.title + '</a></h2>';
  output += '<h4>'+doc.created+'</h4>';
  output += '<p>' + snippet + '</p></div>';
  return output;
};

AjaxSolr.theme.prototype.snippet = function (doc) {
  var output = doc.summary;
  return output;
};

AjaxSolr.theme.prototype.tag = function (facet, weight, handler) {
  return $('<a href="#" class="tagcloud_item"/>').text(facet.value+"("+facet.count+") ").addClass('tagcloud_size_' + weight).click(handler);
};

AjaxSolr.theme.prototype.facet_link = function (value, handler) {
  return $('<a href="#"/>').text(value).click(handler);
};

AjaxSolr.theme.prototype.no_items_found = function () {
  return 'no items found in current selection';
};

})(jQuery);

